package net.flowas.os.domain;

import net.flowas.secure.entity.Group;
import java.util.Date;

import javax.persistence.*;
import net.flowas.secure.entity.IdEntity;

/**
 * Entity implementation class for Entity: Employee
 *
 */
@Entity
public class Employee extends IdEntity {
    @ManyToOne
    private Group department;
    @OneToOne
    private Position position;
    private String code;
    private String name;
    @Temporal(value = TemporalType.DATE)
    private Date entryDate;

    public Employee() {
        super();
    }


    public Position getPosition() {
        return position;
    }

    public void setPosition(Position position) {
        this.position = position;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getEntryDate() {
        return entryDate;
    }

    public void setEntryDate(Date entryDate) {
        this.entryDate = entryDate;
    }

    /**
     * @return the department
     */
    public Group getDepartment() {
        return department;
    }

    /**
     * @param department the department to set
     */
    public void setDepartment(Group department) {
        this.department = department;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

}
